package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 分享实体
 * 表名 share
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Aug 21 10:46:07 CST 2018
 */
@Setter
@Getter
public class ShareEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
    //文章ID
    private Long articleId;
    //用户ID
    private Long userId;
    //分享时间
    private Date shareDate;
    //ENUM-状态:'未激活','已激活'
    private Integer isActive;

    public ShareEntity() {
    }

    public ShareEntity( Long articleId, Long userId, Date shareDate, Integer isActive) {
        this.articleId = articleId;
        this.userId = userId;
        this.shareDate = shareDate;
        this.isActive = isActive;
    }
}
